package com.java.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.java.pojo.entity.BorrowInfo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.java.pojo.vo.BorrowInfoApprovalVo;
import com.java.pojo.vo.BorrowerInfoVo;

import java.math.BigDecimal;

/**
 * <p>
 * 借款信息表 服务类
 * </p>
 *
 * @author Helen
 * @since 2021-07-08
 */
public interface BorrowInfoService extends IService<BorrowInfo> {

    BigDecimal getAmount(Long userId);

    void saveBorrowerInfo(BorrowInfo borrowInfo, Long userId);

    Integer getBorrowerAuthStatus(Long userId);

    IPage<BorrowerInfoVo> getBorrowInfoList(Page<BorrowerInfoVo> pageParam);

    void approval(BorrowInfoApprovalVo borrowInfoApprovalVo);

}
